package com.easygo.mapper;

import com.xuexi.easygo.pojo.SpecificationOption;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface SpecificationOptionMapper {

    //新增
    Integer addSpecificationOption(SpecificationOption option);

    //回显规格选项，因为回显的不止一个，是个集合
    List<SpecificationOption> getSpecificationOptionsBySpecificationId(Integer specificationid);

    Integer updateSpecificationOption(SpecificationOption option);

    Integer deleteSpecificationOptions(int spec_id);
}
